<div class="rating big">    <?php    $rating = $shop->get_rating();    $d = $rating['rating'] - floor($rating['rating']);    $size = null;    if ($d >= 0.13 && $d < 0.38) {        $size = 25;    } else if ($d >= 0.38 && $d < 0.62) {        $size = 50;    } else if ($d >= 0.62 && $d < 0.87) {        $size = 75;    } else if ($d >= 0.87) {        $size = true;     }        for ($i = 1; $i < 6; $i++): ?>    <div class="rating-item <?php if ($rating['rating'] >= $i): ?>active<?php endif; ?> <?php if (ceil($rating['rating']) == $i && $size): ?>active size-<?=$size ?><?php endif; ?>"></div>    <?php endfor; ?></div>